<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" > 
  <f:view contentType="text/html">
<h:head>
</h:head> 
<body> 
		<p:layout fullPage="true">  
		
	

	  		<p:layoutUnit position="north" size="45"  resizable="true"> 
				<h:form>
						<p:breadCrumb >
		  		 
							            <p:menuitem  id="bccadastro" actionListener="#{pageViewBean.setActivePage('cadastro.xhtml')}" update=":display"  icon="ui-icon-disk" />  
							            <p:menuitem  id="bclocacao" actionListener="#{pageViewBean.setActivePage('locacao.xhtml')}" update=":display"  icon="ui-icon-tag"/>
							            <p:menuitem  id="bcdevolucao" actionListener="#{pageViewBean.setActivePage('devolucao.xhtml')}" update=":display"  icon="ui-icon-arrowrefresh-1-w"/> 
							            <p:menuitem  id="bcmidia" actionListener="#{pageViewBean.setActivePage('midia.xhtml')}" update=":display"  icon="ui-icon-video"/>   
						</p:breadCrumb>	
				</h:form>
			
    	  
    		</p:layoutUnit>   
  			
  		  	<p:layoutUnit position="west" size="200" header="Menu" resizable="true"  collapsible="true">
  		  			<h:form>	
            		 		<p:menu style="width:92%;height:100%">  
					    
					            <p:menuitem id="mcadastro" value="Cadastro" actionListener="#{pageViewBean.setActivePage('cadastro.xhtml')}" update=":display" icon="ui-icon-disk" />  
					            <p:menuitem id="mlocacao" value="Locação" actionListener="#{pageViewBean.setActivePage('locacao.xhtml')}" update=":display" icon="ui-icon-tag"/>
					            <p:menuitem id="mdevolucao" value="Devolução" actionListener="#{pageViewBean.setActivePage('devolucao.xhtml')}" update=":display" icon="ui-icon-arrowrefresh-1-w"/> 
					            <p:menuitem id="mmidia" value="Midia"  actionListener="#{pageViewBean.setActivePage('midia.xhtml')}" update=":display" icon="ui-icon-video"/>   
					        
							</p:menu>   
            		  
  					</h:form>
    		</p:layoutUnit>  
  			 
  		  	<p:layoutUnit position="center" id="centro"> 
  		  	 	<p:panel id="display">
        			<ui:include src="#{pageViewBean.activePage}"></ui:include>  
        		</p:panel>
  		  	</p:layoutUnit>
  
		</p:layout> 

</body>
</f:view> 
</html>
